CertificateModel

public final class CertificateModel

This data class represents the entire information extracted, through QR scan, from the certification to validate. This information is the person owner of the certification, her/his dateOfBirth, eventual vaccinations, tests, or recoveryStatements to which was subjected, if the certification isValid and if isCborDecoded.

Constructors

CertificateModel
Link copied to clipboard
CertificateModel CertificateModel(PersonModel person, String dateOfBirth, List<VaccinationModel> vaccinations, List<TestModel> tests, List<RecoveryModel> recoveryStatements, Boolean isValid, Boolean isCborDecoded, Boolean isRevoked, List<Exemption> exemptions, Boolean isBlackListed, String scanMode, String certificateIdentifier, Certificate certificate)

Functions

getCertificate
Link copied to clipboard
final Certificate getCertificate()
getCertificateIdentifier
Link copied to clipboard
final String getCertificateIdentifier()
getDateOfBirth
Link copied to clipboard
final String getDateOfBirth()
getExemptions
Link copied to clipboard
final List<ExemptiongetExemptions()
getIsBlackListed
Link copied to clipboard
final Boolean getIsBlackListed()
getIsCborDecoded
Link copied to clipboard
final Boolean getIsCborDecoded()
getIsRevoked
Link copied to clipboard
final Boolean getIsRevoked()
getIsValid
Link copied to clipboard
final Boolean getIsValid()
getPerson
Link copied to clipboard
final PersonModel getPerson()
getRecoveryStatements
Link copied to clipboard
final List<RecoveryModelgetRecoveryStatements()
getScanMode
Link copied to clipboard
final String getScanMode()
getTests
Link copied to clipboard
final List<TestModelgetTests()
getVaccinations
Link copied to clipboard
final List<VaccinationModelgetVaccinations()
setCertificate
Link copied to clipboard
final Unit setCertificate(Certificate certificate)
setCertificateIdentifier
Link copied to clipboard
final Unit setCertificateIdentifier(String certificateIdentifier)
setExemptions
Link copied to clipboard
final Unit setExemptions(List<Exemption> exemptions)
setIsBlackListed
Link copied to clipboard
final Unit setIsBlackListed(Boolean isBlackListed)
setIsRevoked
Link copied to clipboard
final Unit setIsRevoked(Boolean isRevoked)
setScanMode
Link copied to clipboard
final Unit setScanMode(String scanMode)

Properties

certificate
Link copied to clipboard
private Certificate certificate
certificateIdentifier
Link copied to clipboard
private String certificateIdentifier
dateOfBirth
Link copied to clipboard
private final String dateOfBirth
exemptions
Link copied to clipboard
private List<Exemptionexemptions
isBlackListed
Link copied to clipboard
private Boolean isBlackListed
isCborDecoded
Link copied to clipboard
private final Boolean isCborDecoded
isRevoked
Link copied to clipboard
private Boolean isRevoked
isValid
Link copied to clipboard
private final Boolean isValid
person
Link copied to clipboard
private final PersonModel person
recoveryStatements
Link copied to clipboard
private final List<RecoveryModelrecoveryStatements
scanMode
Link copied to clipboard
private String scanMode
tests
Link copied to clipboard
private final List<TestModeltests
vaccinations
Link copied to clipboard
private final List<VaccinationModelvaccinations

Extensions

toCertificateViewBean
Link copied to clipboard
final CertificateViewBean toCertificateViewBean(CertificateStatus status)